From: Sander Dijkhuis Date: Tue, 14 Jul 2009 12:37:21 +0000 (+0200) Subject: Bug 588173 - No remove button on the first workspace X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11203 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2aea9c59a4795761c83f82ca8ffa51bd62abc363;p=gnome-shell.git Bug 588173 - No remove button on the first workspace If there is only one workspace and it's empty, it should not get a remove button. Add a workspaceNum != 0 check to workspaces.js. --- diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index 082545ab4..e70329456 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -321,6 +321,7 @@ Workspace.prototype = { updateRemovable : function() { let global = Shell.Global.get(); let removable = (this._windows.length == 1 /* just desktop */ && + this.workspaceNum != 0 && this.workspaceNum == global.screen.n_workspaces - 1); if (removable) {